package com.acme.bankapp.domain.bank;

public abstract class AbstractAccount implements Account {
	public double balance;
	public static long numer;
	
	@Override
	public void deposit(double amount) {
		balance += amount;

	}

	@Override
	public void withdraw(double amount) {
		if (balance > amount) {
			balance -= amount;
		}

	}

	@Override
	public double getBalance() {
		
		return balance;
	}
	
	public long getNumer() {
		return numer;
	}

}
